from fdfs_client.client import Fdfs_client# 1. 创建fastDFS客户端对象fast_client = Fdfs_client('./client.conf')# 2. 调用相应方法上传图片ret = fast_client.upload_by_filename('/Users/chao/Desktop/01.jpeg')# fast_client.upload_by_buffer(content)# with open('/Users/chao/Desktop/01.jpeg', 'rb') as f:#     content = f.read()"""{'Group name': 'group1', 'Remote file_id': 'group1/M00/00/00/wKhn0l4NXc2Afj69AAC4j90Tziw52.jpeg', 'Status': 'Upload successed.', 'Local file name': '/Users/chao/Desktop/01.jpeg', 'Uploaded size': '46.00KB', 'Storage IP': '192.168.103.210'}"""print(ret)